package com.zhongyw.mvt.gis.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.zhongyw.mvt.gis.entity.ShapefileInfo;
import com.zhongyw.mvt.gis.entity.VectorTile;
import com.zhongyw.mvt.gis.mapper.ShapefileMapper;
import com.zhongyw.mvt.gis.service.IShapefileService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
import java.util.Map;


/**
 * @author zhong
 */
@Service
@Slf4j
public class IShapefileServiceImpl extends ServiceImpl<ShapefileMapper, ShapefileInfo> implements IShapefileService {

    @Override
    public List<Map<String, Object>> getIntersection(String layer1, String layer2) {
        return baseMapper.getIntersection(layer1, layer2);
    }

    @Override
    public List<Map<String, Object>> nearestNeighbor(String layer, String geoJson) {
        return baseMapper.nearestNeighbor(layer,  geoJson);
    }

    @Override
    public String shortestPath(double[] startCoords, double[] endCoords) {
        return baseMapper.shortestPath(startCoords, endCoords);
    }
}
